package com.zzyl.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class taskDemo {
   // @Scheduled(cron = "0/2 * * * * *")
    public void run(){
        System.out.println(LocalDateTime.now()+"我执行了");
    }
}
